<script setup>
import {ref} from "vue";
import {CryptoUtil} from "baitu";

defineOptions({
  name: 'MD5'
})

const inputValue = ref('')
const value = ref('')
const remark = ref('')

function generate() {
  value.value = CryptoUtil.MD5(inputValue.value)
}
</script>

<template>
  <tool-page title="MD5加密" :value="value" @generate="generate" :remark="remark">
    <template #operate>
      文字：<Input v-model="inputValue" placeholder="请输入" style="width: 300px"/>
    </template>
  </tool-page>
</template>

<style scoped lang="scss">

</style>
